package com.kymatrix.mpo.plus.bpm.server.model.form.task;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Set;
import javax.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.experimental.Accessors;

@ApiModel(value = "管理后台 - 加签任务的创建（加签） Request")
@Data
@Accessors(chain=true)
public class CreateSignBpmTaskReq {

    @ApiModelProperty(value = "需要加签的任务编号", example = "1")
    @NotEmpty(message = "任务编号不能为空")
    private String id;

    @ApiModelProperty(value = "加签的用户编号", example = "888")
    @NotEmpty(message = "加签用户不能为空")
    private Set<String> userIds;

    @ApiModelProperty(value = "加签类型 BpmTaskSignType", example = "before")
    @NotEmpty(message = "加签类型不能为空")
    private String type; // 参见 BpmTaskSignTypeEnum 枚举

    @ApiModelProperty(value = "加签原因", example = "需要加签")
    @NotEmpty(message = "加签原因不能为空")
    private String reason;

}
